import { translate } from "element-plus";

export default {
  messages: {
    //通用部分
    search: {
      inputPlaceholder: "请输入商品名称关键词查询",
      inputOrderPlaceholder: "请输入订单编号进行搜索",
      categoryPlaceholder: "分类",
      buttonText: "查询",
    },
    selectAll: {
      checkAllBoxText: "全选",
      batchDeleteButtonText: "批量删除",
      deleteButtonText: "删 除",
      editButtonText: "编 辑",
    },
    //根据页面划分
    bmanager: {
      ShoppingMall: "购物商城",
      UserDetails: "个人信息",
      MyLocations: "我的地址",
      SwitchLanguage: "切换语言",
      Logout: "退出登录",
    },
    index: {
      Productlist: "商品列表",
      Shoppingcart: "购物车",
      Collection: "收藏夹",
      MyOrder: "我的订单",
      UserOrders: "个人信息",
    },
    products: {
      stock: "库存",
      quantity: "数量: ",
    },
    productDet: {
      backToProductList: "返回",
      stock: "库存",
      quantity: "数量",
      addToCart: "加入购物车",
      buyNow: "立即购买",
      collect: "收藏",
      collected: "已收藏",
      translate: "翻译",
      addSuccess: "添加成功！",
      addFailed: "添加失败……",
      collectSuccess: "收藏成功！",
      requestFailed: "请求失败，请稍后重试",
    },
    shoppingcart: {
      loadingMessage: "正在加载购物车数据……",
      searchButtonText: "查询",
      batchOrderButtonText: "批量购买",
      batchCollectButtonText: "批量收藏",
      unitPriceText: "单价：",
      totalPriceText: "总价：",
      buyButtonText: "购 买",
      noProductsMessage: "购物车暂无商品",
      selectItemsMessage: "请先选择购物车项",
      selectProductsMessage: "请先选择商品",
      batchCollectSuccessMessage: "批量转收藏成功",
      batchDeleteSuccessMessage: "批量删除成功",
      deleteSuccessMessage: "删除成功",
      deleteErrorMessage: "删除失败，请稍后重试",
      requestErrorMessage: "请求失败，请稍后重试",
      getCategoriesErrorMessage: "获取分类数据失败",
      getCategoriesRetryMessage: "获取分类数据失败，请稍后重试",
      getCartItemsErrorMessage: "获取购物车商品失败，请稍后重试",
    },
    collection: {
      noProductsInCollection: "收藏夹暂无商品",
      getCollectionFailed: "获取收藏夹商品失败，请稍后重试",
      getProductListFailed: "获取商品列表失败",
      deleteCollectSuccess: "删除收藏成功",
      deleteCollectFailed: "删除收藏失败，请稍后重试",
      batchDeleteSuccess: "批量删除收藏成功",
      batchDeleteFailed: "批量删除收藏失败，请稍后重试",
      selectProductsToDelete: "请选择要删除的商品",
    },
    myorder: {
      statusButtons: {
        all: "全部",
        unpaid: "待付款",
        unshipped: "待发货",
        unreceived: "待收货",
        completed: "已完成",
      },
      orderList: {
        orderId: "订单编号: ",
        orderStatus: "交易状态: ",
        totalPrice: "订单金额:  ",
        pay: "去付款",
        packup: "打包中",
        logistics: "查看物流",
        afterSales: "申请售后",
        viewHistory: "查看历史售后",
        cancelOrder: "取消订单",
      },
      applyDialog: {
        title: "申请售后",
        form: {
          saleType: {
            label: "售后类型",
            placeholder: "请选择售后类型",
            options: {
              refund: "退货退款",
              onlyRefund: "仅退款",
              exchange: "换货",
            },
          },
          title: {
            label: "问题标题",
            placeholder: "请输入问题标题",
          },
          description: {
            label: "问题描述",
            placeholder: "请详细描述您遇到的问题",
          },
          upload: {
            label: "上传凭证",
          },
          buttons: {
            cancel: "取消",
            submit: "提交申请",
          },
        },
      },
      statusDialog: {
        title: "售后状态详情",
        steps: {
          submit: {
            title: "提交申请",
            description: "您的申请已提交，等待商家处理",
          },
          processing: {
            title: "商家处理中",
            description: "商家正在处理您的请求",
          },
          completed: {
            title: "处理完成",
            description: "您的售后申请已处理完成",
          },
        },
        applicationInfo: {
          title: "申请信息：",
          saleType: "售后类型：",
          problemTitle: "问题标题：",
          problemDescription: "问题描述：",
        },
        evidence: {
          title: "上传凭证：",
        },
      },
      historyDialog: {
        title: "售后记录列表",
        table: {
          columns: {
            applicationId: "申请ID",
            productTitle: "问题标题",
            saleType: "类型",
            action: "操作",
          },
          actions: {
            view: "查看",
          },
          buttons: {
            close: "关闭",
          },
        },
      },
      logisticsDialog: {
        title: "物流信息",
        info: {
          logisticsNo: "物流单号: ",
          logisticsCompany: "快递公司: ",
          logisticsStatus: "物流状态: ",
        },
        buttons: {
          close: "关闭",
        },
      },
      messages: {
        fetchOrdersFailed: "获取订单数据失败，请稍后重试",
        cancelOrderSuccess: "订单取消成功",
        cancelOrderFailed: "取消订单失败，请稍后重试",
        getLogisticsFailed: "获取物流信息失败，请稍后重试",
        applyAfterSalesSuccess: "售后申请提交成功",
        applyAfterSalesFailed: "售后申请提交失败: ",
        applyIdParseFailed: "申请成功但未能解析申请ID",
        noHistoryRecords: "该订单暂无历史售后记录",
        getHistoryFailed: "获取历史售后失败：",
        getHistoryError: "获取历史售后失败，请稍后重试",
        invalidApplyId: "申请 ID 无效",
        getDetailFailed: "获取售后详情失败: ",
        getDetailError: "售后详情获取失败，请稍后重试",
      },
    },
    userorder: {
      avatar: "头像",
      username_not_set: "未设置",
      no_phone_number: "暂无手机号",
      shipping_address: "收货地址",
      my_orders: "我的订单",
      unpaid: "待付款",
      unshipped: "待发货",
      unreceived: "待收货",
      refund_after_sales: "退款/售后",
      fetch_user_info_failed: "获取用户信息失败！",
      request_error: "请求出错，请稍后再试！",
      fetch_order_data_failed: "获取订单数据失败，请稍后重试",
    },
    userdet: {
      backButtonText: "返 回",
      cardHeader: "个人信息",
      usernameLabel: "用户名：",
      phoneLabel: "手机号：",
      addressLabel: "地址：",
      roleLabel: "角色：",
      noUsername: "未设置",
      noPhone: "暂无手机号",
      noAddress: "暂无地址",
      noRole: "未设置角色",
      loadingText: "加载中...",
      fetchError: "获取用户信息失败！",
      requestError: "请求出错，请稍后再试！",
    },
    userLocation: {
      provincePlaceholder: "省级地区",
      cityPlaceholder: "市级地区",
      districtPlaceholder: "区级地区",
      streetAddressPlaceholder: "详细地址",
      backButtonText: "返 回",
      pageTitle: "我的收货地址",
      addAddressButtonText: "添加地址",
      consigneeLabel: "收货人",
      phoneLabel: "电话/手机",
      addressLabel: "详细地址",
      operationLabel: "操作",
      defaultAddressLabel: "移动设置",
      defaultTagText: "默认地址",
      setDefaultButtonText: "设为默认",
      addAddressModalTitle: "添加收货地址",
      editAddressModalTitle: "修改收货地址",
      saveButtonText: "保存",
      cancelButtonText: "取消",
      addressInfoIncomplete: "地址信息不完整，请填写完整",
      phoneNumberTooLong: "电话号码不能超过十一位",
      addAddressSuccess: "成功新增地址！",
      addAddressFailure: "新增地址失败",
      addAddressRetry: "新增地址失败，请稍后重试",
      editAddressNoInfo: "没有要修改的地址信息",
      editAddressSuccess: "成功修改地址！",
      editAddressFailure: "修改地址失败",
      editAddressRetry: "修改地址失败，请稍后重试",
      deleteAddressInvalidIndex: "无效的索引",
      deleteAddressSuccess: "成功删除地址！",
      deleteAddressFailure: "删除地址失败",
      setDefaultAddressInvalidIndex: "索引无效",
      setDefaultAddressSuccess: "成功设置默认地址！",
      setDefaultAddressFailure: "设置默认地址失败",
      setDefaultAddressRetry: "设置默认地址失败，请稍后重试",
      getAddressDataFailure: "获取地址数据失败",
      getAddressDataRetry: "获取地址数据失败，请稍后重试",
    },
    payment: {
      back: "返 回",
      default: "默认",
      confirm_shipping_address: "确认收货地址",
      manage_address: "管理地址",
      show_all_address: "显示全部地址",
      collapse_all_address: "收起全部地址",
      confirm_order_info: "确认订单信息",
      store_products: "店铺宝贝",
      product_name: "商品名称",
      original_price: "原 价",
      quantity: "数 量",
      subtotal: "小 计",
      total_product_price: "商品总价:",
      total_product_quantity: "商品数量：",
      select_payment_method: "请选择支付方式",
      alipay: "支付宝",
      wechat: "微 信",
      bankcard: "银行卡",
      submit_order: "提交订单",
      pay: "去支付",
      scan_qr_code: "请扫描下方二维码进行支付",
      payment_complete: "支付完成",
      select_payment_method_prompt: "请选择支付方式",
      select_shipping_address_prompt: "请选择收获地址",
      order_creation_success: "订单创建成功!",
      order_creation_failure: "订单创建失败",
      order_creation_request_error: "订单创建请求出错，请稍后重试",
      get_payment_qr_code_failure: "获取支付二维码失败，请稍后重试",
      get_address_data_failure: "获取地址数据失败",
      get_address_data_failure_retry: "获取地址数据失败，请稍后重试",
    },
  },
};
